package com.ikun.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ikun.dao.PropertiesDao;
import com.ikun.entity.Properties;
import com.ikun.service.PropertiesService;

/**
 * @ClassName: PropertyServiceImpl
 * @Author: 吴思伟
 * @CreateTime: 2025-03-26 10:11
 * @Description: TODO
 */
@Service
public class PropertiesServiceImpl implements PropertiesService {

    @Autowired
    private PropertiesDao propertiesDao;

    @Override
    public List<Properties> findAll() {
        return propertiesDao.findAll();
    }

    @Override
    public int updateManager(String buildingId, String managerId) {
        return propertiesDao.updateManager(buildingId, managerId);
    }

    @Override
    public int countAllProperties() {
        return propertiesDao.countAllProperties();
    }

    @Override
    public List<Properties> showmyinfoAllProperties() {
        return propertiesDao.showmyinfoAllProperties();
    }

    @Override
    public int addProperties(Properties properties) {
        return propertiesDao.addProperties(properties);
    }

    @Override
    public int updateOwner(String ownerId, String propertyId) {
        return propertiesDao.updateOwner(ownerId, propertyId);
    }

    @Override
    public int addProperty(Properties properties) {
        return propertiesDao.addProperty(properties);
    }

}
